// mock文件
export default function () {
  return [
    {
      url: "/api/admin/login",
      method: "post",
      response: {
        code: 0,
        data: {
          token: "token123"
        },
        msg: "ok"
      }
    },
    {
      url: "/api/admin/userInfo",
      method: "get",
      response: {
        code: 0,
        data: {
          name: "admin"
        },
        msg: "ok"
      }
    },
    {
      url: "/api/admin/menuList",
      method: "get",
      response: {
        code: 0,
        data: [
          {
            path: "/document",
            title: "文档",
            icon: "icon-wendang"
          },
          {
            path: "/table",
            title: "列表页",
            icon: "icon-table"
          },
          {
            path: "/table/detail",
            title: "列表详情"
          },
          {
            path: "/nest",
            title: "嵌套页面",
            icon: "icon-qiantao"
          },
          {
            path: "/nest/nest1",
            title: "嵌套页面1"
          },
          {
            path: "/nest/nest2",
            title: "嵌套页面2"
          }
        ],
        msg: "ok"
      }
    }
  ];
}
